#include "stdafx.h"

#include "Utils/TimeUtils.h"

static __int64 GetFreq()
{
	static LARGE_INTEGER freq = {0};
	if (freq.QuadPart == 0)
	{
		::QueryPerformanceFrequency(&freq);
	}
	return freq.QuadPart;
}

__int64 MyGetTickCount()
{
	static __int64 freq = GetFreq();
	LARGE_INTEGER time = {0};
	::QueryPerformanceCounter(&time);
	return time.QuadPart * 1000 / freq;
}
